-- GENERATED SPELL FOR [Twilight Speaker Viktor] --


function spell0_25924(pUnit, Event) --@Fire Shield II,n/a--
pUnit:FullCastSpellOnTarget(184,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25924', 1000, 1)
end

function spell1_25924(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(20793,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25924', 3000, 1)
end

function Sorts_25924(pUnit, Event)
local choix_sorts_25924 = math.random(0, 1)
if choix_sorts_25924 == 0 then
pUnit:RegisterEvent('spell0_25924', 1, 1)
end
if choix_sorts_25924 == 1 then
pUnit:RegisterEvent('spell1_25924', 1, 1)
end
end

function mob25924_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25924', math.random(1500, 3000), 1)
end

function mob25924_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25924_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25924_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25924, 1, 'mob25924_Action')
RegisterUnitEvent(25924, 2, 'mob25924_Leave')
RegisterUnitEvent(25924, 3, 'mob25924_Kill')
RegisterUnitEvent(25924, 4, 'mob25924_Die')
